﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xboxssbeatemup
{
    public enum EventTrigger
    {
        None,
        PlayerAttack,
        PlayerEnterZone,
        PlayerInRange
    }
    public class EventTriggerHelper
    {
        public static EventTrigger FromString(String str)
        {
            if (str == "PlayerAttack")
                return EventTrigger.PlayerAttack;
            if (str == "PlayerEnterZone")
                return EventTrigger.PlayerEnterZone;
            if (str == "PlayerInRange")
                return EventTrigger.PlayerInRange;
            return EventTrigger.None;
        }
    }
}
